/*
 * All rights Reserved, Designed By DataDriver
 * Copyright:    DataDriver.Inc
 * Company:      Zhuo Wo Infomation Technology (ShangHai) CO.LTD
 */
package com.sun;

import com.sun.config.TransConfig;
import com.sun.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 主测试类
 */
public class MainTest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(TransConfig.class);
        UserService userService = (UserService) context.getBean("userService");
        userService.insertData();
        context.close();
    }
}
